package Pearl.mod;

	import java.sql.SQLException;
import java.util.ArrayList;

import org.apache.log4j.Logger;

import Pearl.beans.City;
import Pearl.dao.CityDao;
import Pearl.dao.CityDaoImp;
	
	public class CityMod {

		private static final Logger log =Logger.getLogger(UsersMod.class);
		
		public ArrayList<City> rechCit(){
			CityDao adMod = new CityDaoImp();
			ArrayList<City>  ad = new ArrayList<City>();
		
			try{
				ad = adMod.rechCity();
				log.debug("rech address : OK");
			}
			catch(SQLException e){
				e.printStackTrace();
				log.error("rech Mod : error");
			}
			return ad;
		}
		
	}


